package com.synergy.stockflow.warehouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "inventory_snapshot")
public class InventorySnapshot {
    /**
     * 快照ID
     */
    @TableId(value = "snapshot_id", type = IdType.ASSIGN_ID)
    @Schema(description="快照ID")
    private String snapshotId;

    /**
     * 仓库ID
     */
    @TableField(value = "warehouse_id")
    @Schema(description="仓库ID")
    private String warehouseId;

    /**
     * 物料ID
     */
    @TableField(value = "material_id")
    @Schema(description="物料ID")
    private String materialId;

    /**
     * 批次号
     */
    @TableField(value = "batch_no")
    @Schema(description="批次号")
    private String batchNo;

    /**
     * 当前库存数量
     */
    @TableField(value = "quantity")
    @Schema(description="当前库存数量")
    private BigDecimal quantity;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @Schema(description="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @Schema(description="更新时间")
    private Date updateTime;
}